#include <cstdlib>
#include <iostream>
#include <stdlib.h>
#include <string>
#include <cstring>
using namespace std;

class LargeInt{
friend ostream& operator<<(ostream &out,const LargeInt &Int);
friend istream& operator>>(istream &iut,LargeInt &Int);
	private:
		string num;
	public:
		LargeInt(){this->num="";}
		LargeInt operator+(LargeInt &Int);
};
int main()
{
	LargeInt int1,int2;
	cin>>int1;
	cin>>int2;
	cout<<int1+int2<<endl;
	return 0;
}
ostream& operator<<(ostream &out,const LargeInt &Int)
{
	out<<Int.num;
	return out;
}
istream& operator>>(istream &iut,LargeInt &Int)
{
	cin>>Int.num;
	return iut;
}
LargeInt LargeInt::operator+(LargeInt &Int)
{
	LargeInt Sum;
	int len1=this->num.length();
	int len2=Int.num.length();
	int len;
	if(len1<=len2){
		string temp(len2-len1,'0');
		this->num=temp+this->num;
		len=len2;
	}else {
		string temp(len1-len2,'0');
		Int.num=temp+Int.num;
		len=len1;
	}
	int end=0;
	int digit=0;
	string rans="";
	for(int i=len-1;i>=0;i--){
		digit=(int)(this->num[i]-'0')+(int)(Int.num[i]-'0')+end;
		end=(digit-digit%10)/10;
		digit%=10;
		rans=to_string(digit)+rans;
	}
	if(end>0){
		rans=to_string(end)+rans;
	}
	Sum.num=rans;
	return Sum;
}
